<?php if ($this->pageCount): ?>
<div id="pagination" style="width: 150px;">
<?php 
	if(isset($this->first)){
		if ($this->current> $this->first){
			echo "<a href='" . $this->url(array('page' => $this->first)). "'><img src='".STYLE."/public/images/arrows/arrow_first.png' width='16' height='16' alt='Go to First Page' title='Go to First Page' /> </a>";
		}
	}
	if (isset($this->previous)){
  		echo "<a href='" . $this->url(array('page' => $this->previous)). "'><img src='".STYLE."/public/images/arrows/arrow_previous.png' width='16' height='16' alt='Previous' title='Previous' /> </a>";
	}
	foreach ($this->pagesInRange as $page){
	   if ($page != $this->current){
	   		echo  '<a href="' . $this->url(array('page' => $page)). '">' . $page . '</a> ';
	  }else{
	  	echo $page . ' ';
	  }
   }
	 if (isset($this->next)){
		echo "<a href='".$this->url(array('page' => $this->next))."'><img src='".STYLE."/public/images/arrows/arrow_next.png' width='16' height='16' alt='Next' title='Next' /></a>";
  	 }
  	 if (isset($this->last)){
  	 	if($this->current < $this->last){
				echo "<a href='" . $this->url(array('page' => $this->last)). "'><img src='".STYLE."/public/images/arrows/arrow_last.png' width='16' height='16' alt='Go to last page' title='Go to last page' /> </a>";
		}
  	 }
  ?>
</div>
<?php endif; ?>